#ifndef ALERTINFO_H
#define ALERTINFO_H
#include "alert.h"
#include "ui_alertinfo.h"

#include <QDialog>
class AlertInfo : public QDialog, Ui::AlertInfo
{
    Q_OBJECT
    
public:
    // change constructor to take in Record instead of Qstring
    AlertInfo();
    AlertInfo(Alert);
    Alert alert;
    Alert newAlert;
    string nameID;
    string name;
    string info;
    string id;
    QDateTime datetime;

private:

signals:
    void on_deleteAlertButton_clicked();
    void on_alertAcceptButton_clicked();
    void on_alertCancelButton_clicked();
    void remove(Alert);
    void modify(Alert oldAlert, Alert newAlert);
public slots:
    void removeAlert();
    void checkEdited();
    void enableFrequency(QString);
    void setFrequency(QString);
    void setDisabled(bool);
};

#endif // ALERTINFO_H
